import request from '@/utils/request'

//模型管理-------------------------------------------

// 标签树查询
export const queryTagTree = param => {
  return request.post('/qualityTesting/tag/queryTagTree', param)
}

// 点击二级树标签查询
export const findAllTagInfoByPid = param => {
  return request.post('/qualityTesting/tagInfo/findAllTagInfoByPid', param)
}

// 新点击二级树标签查询
export const queryTagChidren = param => {
  return request.post('/qualityTesting/tag/queryTagChidren', param)
}

// 标签下拉框查询
export const findByTagId = param => {
  return request.post('/qualityTesting/tagInfoData/findByTagId', param)
}

// 模型保存
export const addNewModel = param => {
  return request.post('/qualityTesting/model/addNewModel', param)
}

// 模型修改
export const updateModel = param => {
  return request.post('/qualityTesting/model/updateModel', param)
}

// 模型列表查询
export const findModelToPage = param => {
  return request.post('/qualityTesting/model/findModelToPage', param)
}

// 查询单个模型基本信息
export const findModelById = param => {
  return request.post('/qualityTesting/model/findModelById', param)
}

// 删除模型
export const deleteModel = param => {
  return request.post('/qualityTesting/model/deleteModel', param)
}

// 模型内容列表数据
export const findModelOrderList = param => {
  return request.post('/qualityTesting/modelOrderTable/findModelOrderList', param)
}

// 模型分析-柱状图和列表查询
export const getReportChartData = param => {
  return request.post('/qualityTesting/modelOrderTable/getReportChartData', param)
}

// 模型分析-查询饼图数据
export const getReportPieData = param => {
  return request.post('/qualityTesting/modelOrderTable/getReportPieData', param)
}

// 通过或踢出 -模型内容的列表数据
export const addOrderPassOrOut = param => {
  return request.post('/qualityTesting/modelOrderTable/addOrderPassOrOut', param)
}


// 查询中心下拉框
export const selectBranch = param => {
  return request.post('/qualityTesting/model/selectBranch', param)
}

// （新）查询组合标签列表
export const findTagInfoToPage = param => {
  return request.post('/qualityTesting/tagCompose/findTagInfoToPage', param)
}

// 工单关联模型
export const addOrderToModel = param => {
  return request.post('/qualityTesting/modelOrderTable/addOrderToModel', param)
}

// 模型预处理-开始预处理
export const preRunModel = param => {
  return request.post('/qualityTesting/modelOrderTable/preRunModel', param)
}
// 模型预处理-查询预处理
export const findpreRunModeResultlData = param => {
  return request.post('/qualityTesting/modelOrderTable/findpreRunModeResultlData', param)
}

// 通过录音id获取录音文本列表
export const getSingleTextInfo = param => {
  return request.post('/qualityTesting/modelOrderTable/getSingleTextInfo', param)
}

// 正式运算
export const formalOperation = param => {
  return request.post('/qualityTesting/model/formalOperation', param)
}

// （新）模型内容--导出按钮
export const getFileName = param => {
  return request.post('/qualityTesting/modelOrderTable/getFileName', param)
}

// 查询文件列表
export const fileList = param => {
  return request.post('/qualityTesting/userfile/fileList', param)
}




//单独用的场景管理的接口---

// // 场景树查询
// export const findTree = param => {
//   return request.post('/qualityTesting/scene/findTree', param)
// }

// 场景树查询-场景树
export const getTreeForModel = param => {
  return request.post('/qualityTesting/scene/getTreeForModel', param)
}
// 场景树查询-场景
export const findSceneBySid = param => {
  return request.post('/qualityTesting/sceneInfo/findSceneBySid', param)
}

// 场景分页查询
export const findSceneToPage = param => {
  return request.post('/qualityTesting/sceneInfo/findSceneToPage', param)
}


